<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
td
{
font-family:"Arial";
font-size:small;
}
select
{
font-family:"Arial";
font-size:small;

}
</style>


<title>Filter Selection</title>

</head>
<body>
<jsp:include page="../banners/topbanner.jsp"/>
	<form id="form1" action="/DPUnified/DefectReport" method="post">
	
	<c:choose>
	<c:when test="${defects=='notfound'}">
			<font face = "Arial" size="2" color="maroon"><c:out value="${defectsnotfound}"></c:out></font> 
	</c:when>

	<c:otherwise>
	
	<br><br><br><br><br><br>
	
	<table align="center" id="table">
		<tr>
			<td>YEAR</td>
			<td>
				<select name="selectYear">
					<c:forEach var = "year" items = "${YEAR}">
						<option value = "${year}"><c:out value="${year}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
	
		<tr>
			<td>MONTH</td>
			<td>
				<select name="selectMonth">
					<c:forEach var = "month" items = "${MONTH}">
						<option value = "${month}"><c:out value="${month}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
	
		<tr>
			<td>PROJECT</td>
			<td>
				<select name="selectProject">
					<c:forEach var = "projectCode" items = "${PROJECTCODE}">
						<option value = "${projectCode}"><c:out value="${projectCode}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>DEFECT IMPACT</td>
			<td>
				<select name="selectImpact">
					<c:forEach var = "impact" items = "${DEFECTIMPACT}">
						<option value = "${impact}"><c:out value="${impact}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>DEFECT STATUS</td>
			<td>
				<select name="selectStatus">
					<c:forEach var = "status" items = "${DEFECTSTATUS}">
						<option value = "${status}"><c:out value="${status}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>DEFECT SEVERITY</td>
			<td>
				<select name="selectSeverity">
					<c:forEach var = "severity" items = "${DEFECTSEVERITY}">
						<option value = "${severity}"><c:out value="${severity}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>DEFECT PRIORITY</td>
			<td>
				<select name="selectPriority">
					<c:forEach var = "priority" items = "${DEFECTPRIORITY}">
						<option value = "${priority}"><c:out value="${priority}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>DEFECT TYPE</td>
			<td>
				<select name="selectType">
					<c:forEach var = "type" items = "${DEFECTTYPE}">
						<option value = "${type}"><c:out value="${type}"/></option>
					</c:forEach>
  				</select>
			</td>
		</tr>
		
		<tr>
			<td>
			</td>
			<td>
				<input type="submit" value="Search"/>
			</td>
		</tr>

	</table>
		
		</c:otherwise>
		</c:choose>
</form>
</body>
</html>